package com.ipzoe.common.bean.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ipzoe.common.util.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;

/**
 * 用户对象
 * <p>
 * Created 2018/01/19.
 *
 * @author pfzhang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "account")
@ApiModel(value = "Account", description = "用户对象")
public class Account extends BaseEntity {

    /** 用户名 */
    @ApiModelProperty("用户名")
    private String username;

    /** 密码 */
    @ApiModelProperty("密码")
    @JsonIgnore
    private String password;
}
